def get_formatted_name(first_name, last_name):
    full_name = f"{first_name} {last_name}"
    return full_name
while True:
    print('\nPlease enter your full name:')
    print("enter 'q' to quit")
    f_name = input("first name: ")
    if f_name == 'q':
        break
    l_name = input("last name: ")
    if l_name == 'q':
        break
    formatted_name = get_formatted_name(f_name, l_name)
    print(formatted_name)